MPIPATH		= /export/home/yyin/common/program_files/mpich2-1.4.1p1
INSTALL_DIR     = /export/home/yyin/install

CC		= /export/home/yyin/install/bin/mpicc
CXX		= /export/home/yyin/install/bin/mpicc

CXXFLAGS	:= -finstrument-functions
CXXFLAGS        := $(CXXFLAGS) -I${INSTALL_DIR}/include
CXXFLAGS	:= $(CXXFLAGS) -I${MPIPATH}/src/include

LDFLAGS         := $(LDFLAGS) -L/export/home/yyin/install/lib/ -liosig
LDFLAGS         := $(LDFLAGS) -lm -lpthread

DFLAGS		:= -D COLUMBIA -D IO
DFLAGS          := $(DFLAGS) -D_LARGEFILE64_SOURCE
DFLAGS          := $(DFLAGS) -D_FILE_OFFSET_BITS=64

MADbench2: MADbench2.o
	$(CC) -o MADbench2 MADbench2.o $(LDFLAGS)

MADbench2.o: MADbench2.c
	$(CC) -g $(CXXFLAGS) $(DFLAGS) -c MADbench2.c

clean:
	rm *.o MADbench2

# Yanlong 12.19.2012 created
#         2013.01.10 modified
